define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
    var Controller = {
        add: function () {
            Form.api.bindevent($("form[role=form]"), function(data, ret){
                Fast.api.close(ret);
            }, function(data, ret){

            });
        },
        edit: function () {
            Form.api.bindevent($("form[role=form]"), function(data, ret){
                Fast.api.close(ret);
            }, function(data, ret){
            });
        },
        api: {
            bindevent: function () {
                Form.api.bindevent($("form[role=form]"));
            }
        }
    };
    return Controller;
});